#include <stdio.h>
#include <omp.h>

// construct_unroll 函数
void construct_unroll(double A[100])
{
    #pragma GCC unroll 4
    for (int i = 0; i < 100; ++i)
    {
        A[i] = A[i] + 1;
    }
}

int main() {
    double A[100];
    // 初始化数组
    for (int i = 0; i < 100; ++i) {
        A[i] = 0;
    }

    // 调用 construct_unroll 函数
    construct_unroll(A);

    // 输出数组的前几个元素来验证结果
    for (int i = 0; i < 5; ++i) {
        printf("A[%d] = %.2f\n", i, A[i]);
    }

    return 0;
}    